package com.faithnmn.learnenglish;

import android.app.Application;
import android.content.SharedPreferences;

import com.faithnmn.learnenglish.network.VolleyRequestManager;

public class MyApplication extends Application {
	private static MyApplication instance;
	private static SharedPreferences sharedPref;
@Override
public void onCreate() {
	super.onCreate();
	VolleyRequestManager.init(this);
	sharedPref=getSharedPreferences("EasyEnglish", MODE_PRIVATE);
}

public static MyApplication getInstance(){
	if(instance == null){
		instance = new MyApplication();
	}
	return instance;
}

public static SharedPreferences getSharedPreferences(){
	return sharedPref;
}

}
